package com.mapper;

import com.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper {
    SysUser login(@Param("account")String account, @Param("password")String password);

    List<SysUser> list(@Param("begin")Integer begin, @Param("size")Integer size, @Param("realName") String realName,@Param("roleId")Integer roleId);

    int count(@Param("realName") String realName,@Param("roleId")Integer roleId);
    int add(SysUser sysUser);

    SysUser selectId(Integer id);

    int del(Integer id);

    int edit(SysUser sysUser);

    int selectByAccount(String account);

}
